<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div style="background:gold;width:100px;overflow-y:scroll;height:100px;line-height:50px;">
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span><br />
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span><br />
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span>
</div>
<br />
<div style="background:gold;width:100px;line-height:50px;">
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span><br />
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span><br />
    <span style="font-size:12px;font-family:Verdana,宋体;background:yellow">AAA</span>
</div>
</body>
</html>